package com.sc.sysconfig.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户
 *
 * @author 徐赫阳
 * @date 2021/08/30
 */
@Data
public class SysUser extends SysBase implements Serializable {
    /**
     * 串行版本uid
     */
    private static final long serialVersionUID = 370093926535785832L;

    @ApiModelProperty(value="用户姓名")
    private String name;

    @ApiModelProperty(value="用户登录账号")
    private String loginName;

    @ApiModelProperty(value="密码")
    private String password;

    @ApiModelProperty(value="头像 -- base64格式")
    private String avatar;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(value="生日")
    private Date birthday;

    @ApiModelProperty(value="角色")
    private Integer role;

    @ApiModelProperty(value="用户描述")
    private String userDesc;

    @ApiModelProperty(value="邮箱")
    private String email;

    @ApiModelProperty(value="电话")
    private String phone;

    @TableLogic(value = "0",delval = "1")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="删除标识")
    private Integer isDel;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="启用状态 字典表COMMON_STATUS_DICT")
    private Integer status;



}
